package com.andy.qhb.game;

import java.util.List;
import java.util.Map;

import com.andy.qhb.dao.DaoUtils;
import com.google.common.collect.Maps;

public class FriendsManager {

	private static Map<Long, List<Map<String, Object>>> friends_ = Maps.newHashMap();

	public static List<Map<String, Object>> findFriends(Long uid) {
		if (!friends_.containsKey(uid)) {
			List<Map<String, Object>> friends = DaoUtils.getListSql("select * from usr_friends where uid=?", uid);
			friends_.put(uid, friends);
		}
		return friends_.get(uid);
	}
	
	public static void addFriend(Long uid){
		
	}
	
}
